+2002-04-21 Alexander Larsson <alla@lysator.liu.se>
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
+ Save x and y in window_private.
+
+ * gtk/gtkplug.c (_gtk_plug_add_to_socket):
+ Move plug window outside the visible area to avoid flashing until
+ the first size_allocate.
+
2002-04-21 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
+2002-04-21 Alexander Larsson <alla@lysator.liu.se>
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
+ Save x and y in window_private.
+
+ * gtk/gtkplug.c (_gtk_plug_add_to_socket):
+ Move plug window outside the visible area to avoid flashing until
+ the first size_allocate.
+
2002-04-21 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
+2002-04-21 Alexander Larsson <alla@lysator.liu.se>
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
+ Save x and y in window_private.
+
+ * gtk/gtkplug.c (_gtk_plug_add_to_socket):
+ Move plug window outside the visible area to avoid flashing until
+ the first size_allocate.
+
2002-04-21 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
+2002-04-21 Alexander Larsson <alla@lysator.liu.se>
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
+ Save x and y in window_private.
+
+ * gtk/gtkplug.c (_gtk_plug_add_to_socket):
+ Move plug window outside the visible area to avoid flashing until
+ the first size_allocate.
+
2002-04-21 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
+2002-04-21 Alexander Larsson <alla@lysator.liu.se>
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
+ Save x and y in window_private.
+
+ * gtk/gtkplug.c (_gtk_plug_add_to_socket):
+ Move plug window outside the visible area to avoid flashing until
+ the first size_allocate.
+
2002-04-21 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
+2002-04-21 Alexander Larsson <alla@lysator.liu.se>
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
+ Save x and y in window_private.
+
+ * gtk/gtkplug.c (_gtk_plug_add_to_socket):
+ Move plug window outside the visible area to avoid flashing until
+ the first size_allocate.
+
2002-04-21 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
GDK_WINDOW_XID (new_parent),
x, y);
+ window_private->x = x;
+ window_private->y = y;
+
/* From here on, we treat parents of type GDK_WINDOW_FOREIGN like
* the root window
*/
GtkSocket *socket)
{
GtkWidget *widget;
+ gint w, h;
g_return_if_fail (GTK_IS_PLUG (plug));
g_return_if_fail (GTK_IS_SOCKET (socket));
plug->socket_window = GTK_WIDGET (socket)->window;
if (GTK_WIDGET_REALIZED (widget))
- gdk_window_reparent (widget->window, plug->socket_window, 0, 0);
+ {
+ gdk_drawable_get_size (GDK_DRAWABLE (widget->window), &w, &h);
+ gdk_window_reparent (widget->window, plug->socket_window, -w, -h);
+ }
gtk_widget_set_parent (widget, GTK_WIDGET (socket));